/***************
 * Import Activity/Project Panel
 */
AIR2.Import.Activity = function() {
    return new AIR2.UI.Panel({
        storeData: AIR2.Import.TANKDATA,
        url: AIR2.HOMEURL + '/import',
        colspan: 1,
        title: 'Import Activity',
        iconCls: 'air2-icon-activity',
        itemSelector: '.air2-import-activity',
        tpl: new Ext.XTemplate(
            '<tpl for="."><ul class="air2-import-activity">' +
              '<li>' +
                '<p><b>Organization:</b> <tpl if="Organization">' +
                  '{[AIR2.Format.orgNameLong(values.Organization,true)]}' +
                '</tpl></p>' +
              '</li>' +
              '<li>' +
                '<p><b>Project:</b> {[AIR2.Format.projectName(values.Project,true)]}</p>' +
              '</li>' +
              '<li>' +
                '<p><b>Activity:</b> <tpl if="ActivityMaster">{[values.ActivityMaster.actm_name]}</p></tpl>' +
              '</li>' +
              '<li><p><b>Date:</b> {[AIR2.Format.dateLong(values.tank_dtim)]}</p>' +
            '</ul></tpl>',
            {
                compiled: true,
                disableFormats: true
            }
        )
    });
}